home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
- //
- // Copyright (C) 1991 Texas Instruments Incorporated.
- //
- // Permission is granted to any individual or institution to use, copy, modify,
- // and distribute this software, provided that this complete copyright and
- // permission notice is maintained, intact, in all copies and supporting
- // documentation.
- //
- // Texas Instruments Incorporated provides this software "as is" without
- // express or implied warranty.
- //
- *****************************************************************************
- *
- * Author: Martin Neath
- * Filename: project.imk
- * $Revision: $ $Date: $
- * Module: build/config
- * Purpose: PISCES project template file
- * Abstract:
- * - The "project.imk" file contains default values for project
- * commands, variables, and pathnames.
- *
- * - Do *NOT* change values in this file -- change them in the
- * site and/or system configuration files
- *
- * Related Files: site.def, imake.imk, imake.rul
- *
- * Creation Date: 05/10/90
- * Changed by\Date\Reason:
- *
- *****************************************************************************/
-
- /*###########################################################################*/
- /*# PISCES System defaults #*/
- /*###########################################################################*/
-
- #ifndef LibDir
- #define LibDir $(TOP)$(PATHSEP)lib$(PATHSEP)$(MACHINE)
- #endif
- #ifndef ProjectLibraryName
- #define ProjectLibraryName ICE
- #endif
- #ifndef FastLibraryName
- #define FastLibraryName fast##ProjectLibraryName
- #endif
- #ifndef TestLibraryName
- #define TestLibraryName test##ProjectLibraryName
- #endif
- #ifndef ImakefileName
- #define ImakefileName Imakefile
- #endif
- #ifndef MiscFileList
- #define MiscFileList
- #endif
- #ifndef BinDir
- #define BinDir $(TOP)$(PATHSEP)bin
- #endif
- #ifndef IncDir
- #define IncDir $(TOP)$(PATHSEP)include
- #endif
- #ifndef ImakeDir
- #define ImakeDir $(TOP)$(PATHSEP)pisces$(PATHSEP)imake
- #endif
- #ifndef DependDir
- #define DependDir $(TOP)$(PATHSEP)pisces$(PATHSEP)mkdepend
- #endif
- #ifndef ConfigDir
- #define ConfigDir $(TOP)$(PATHSEP)pisces$(PATHSEP)config
- #endif
- #ifndef FlexDir
- #define FlexDir $(TOP)$(PATHSEP)pisces$(PATHSEP)flex
- #endif
- #ifndef ByaccDir
- #define ByaccDir $(TOP)$(PATHSEP)pisces$(PATHSEP)byacc
- #endif
-
- #ifndef StandardCIncludes
- #define StandardCIncludes $(IFLAG)$(CINCDIR)
- #endif
- #ifndef StandardCDefines
- #define StandardCDefines
- #endif
- #ifndef StandardCLibraries
- #define StandardCLibraries
- #endif
- #ifndef StandardCLibraryDirs
- #define StandardCLibraryDirs
- #endif
-
- #ifndef StandardCPIncludes
- #define StandardCPIncludes $(IFLAG)$(CPLUSINCDIR)
- #endif
- #ifndef StandardCPDefines
- #define StandardCPDefines
- #endif
- #ifndef StandardCPLibraries
- #define StandardCPLibraries
- #endif
- #ifndef StandardCPLibraryDirs
- #define StandardCPLibraryDirs
- #endif
-
- #ifndef ProjectCIncludes
- #define ProjectCIncludes
- #endif
- #ifndef ProjectCDefines
- #define ProjectCDefines $(DFLAG)$(MACHINE)
- #endif
- #ifndef ProjectCLibraries
- #define ProjectCLibraries
- #endif
- #ifndef ProjectCLibraryDirs
- #define ProjectCLibraryDirs
- #endif
-
- #ifndef ProjectCPIncludes
- #define ProjectCPIncludes $(IFLAG)IncDir
- #endif
- #ifndef ProjectCPDefines
- #define ProjectCPDefines $(DFLAG)$(MACHINE)
- #endif
- #ifndef ProjectCPLibraries
- #define ProjectCPLibraries $(LIBSFLAG)$(LIBRARY)
- #endif
- #ifndef ProjectCPLibraryDirs
- #define ProjectCPLibraryDirs $(LDIRFLAG)$(LIBDIR)
- #endif
-
- #ifndef LocalCIncludes
- #define LocalCIncludes
- #endif
- #ifndef LocalCDefines
- #define LocalCDefines
- #endif
- #ifndef LocalCLibraries
- #define LocalCLibraries
- #endif
- #ifndef LocalCLibraryDirs
- #define LocalCLibraryDirs
- #endif
-
- #ifndef LocalCPIncludes
- #define LocalCPIncludes
- #endif
- #ifndef LocalCPDefines
- #define LocalCPDefines
- #endif
- #ifndef LocalCPLibraries
- #define LocalCPLibraries
- #endif
- #ifndef LocalCPLibraryDirs
- #define LocalCPLibraryDirs
- #endif
-
- #ifndef COptimizeFlag
- #define COptimizeFlag -O
- #endif
- #ifndef CPlusOptimizeFlag
- #define CPlusOptimizeFlag -O
- #endif
- #ifndef DefaultCFlags
- #define DefaultCFlags
- #endif
- #ifndef DefaultCPlusFlags
- #define DefaultCPlusFlags +w +i -Dvolatile=
- #endif
- #ifndef CFlagsDebug
- #define CFlagsDebug DefaultCFlags
- #endif
- #ifndef CPlusFlagsDebug
- #define CPlusFlagsDebug $(DFLAG)RK_DEBUG DefaultCPlusFlags
- #endif
- #ifndef CLinkerOptions
- #define CLinkerOptions
- #endif
- #ifndef CPlusLinkerOptions
- #define CPlusLinkerOptions
- #endif
- #ifndef RCSDirName
- #define RCSDirName() PrefixDirName(RCS)
- #endif
- #ifndef TestDirName
- #define TestDirName test
- #endif
- #ifndef VersionDirName
- #define VersionDirName version.
- #endif
- #ifndef REV
- #define REV 1
- #endif
- #ifndef YaccLexDefines
- #define YaccLexDefines
- #endif
- #ifndef MiscCFlags
- #define MiscCFlags
- #endif
-
- /*###########################################################################*/
- /*# PISCES System make variables #*/
- /*# - many defined in system-specific rules file #*/
- /*###########################################################################*/
-
- TOP = TOPDIR /* */
- MACHINE = MACH /* */
- INCDIR = IncDir /* */
- LIBDIR = LibDir /* */
- LIBRARY = ProjectLibraryName /* */
- FASTLIBRARY = FastLibraryName /* */
- TESTLIBRARY = TestLibraryName /* */
- IMAKEFILE = ImakefileName /* */
- MISCFILES = MiscFileList /* */
- BINDIR = BinDir /* */
- RCSDIR = RCSDirName() /* */
- TESTDIR = TestDirName /* */
- VERSION = VersionDirName /* */
- CURVER = REV /* */
- NEXT = @+REV /* */
- PREV = @-REV /* */
- IMAKESRC = ImakeDir /* */
- DEPENDSRC = DependDir /* */
- CONFIG = ConfigDir /* */
- FLEXSRC = FlexDir /* */
- BYACCSRC = ByaccDir /* */
- YACCLEX = YaccLexDefines /* */
-
- STD_C_INCS = StandardCIncludes /* */
- STD_C_DEFS = StandardCDefines /* */
- STD_C_LIBS = StandardCLibraries /* */
- STD_C_LIBDIRS = StandardCLibraryDirs /* */
-
- STD_CPLUS_INCS = StandardCPIncludes /* */
- STD_CPLUS_DEFS = StandardCPDefines /* */
- STD_CPLUS_LIBS = StandardCPLibraries /* */
- STD_CPLUS_LIBDIRS = StandardCPLibraryDirs /* */
-
- PROJECT_C_INCS = ProjectCIncludes /* */
- PROJECT_C_DEFS = ProjectCDefines /* */
- PROJECT_C_LIBS = ProjectCLibraries /* */
- PROJECT_C_LIBDIRS = ProjectCLibraryDirs /* */
-
- PROJECT_CPLUS_INCS = ProjectCPIncludes /* */
- PROJECT_CPLUS_DEFS = ProjectCPDefines /* */
- PROJECT_CPLUS_LIBS = ProjectCPLibraries /* */
- PROJECT_CPLUS_LIBDIRS = ProjectCPLibraryDirs /* */
-
- LOCAL_C_INCS = LocalCIncludes /* */
- LOCAL_C_DEFS = LocalCDefines /* */
- LOCAL_C_LIBS = LocalCLibraries /* */
- LOCAL_C_LIBDIRS = LocalCLibraryDirs /* */
-
- LOCAL_CPLUS_INCS = LocalCPIncludes /* */
- LOCAL_CPLUS_DEFS = LocalCPDefines /* */
- LOCAL_CPLUS_LIBS = LocalCPLibraries /* */
- LOCAL_CPLUS_LIBDIRS = LocalCPLibraryDirs /* */
-
- ALLCDEFS = $(LOCAL_C_DEFS) $(LOCAL_C_INCS) $(PROJECT_C_DEFS) $(PROJECT_C_INCS) $(STD_C_DEFS) $(STD_C_INCS)
- ALLCLIBS = $(LOCAL_C_LIBS) $(PROJECT_C_LIBS) $(STD_C_LIBS)
- ALLCLIBDIRS = $(LOCAL_C_LIBDIRS) $(PROJECT_C_LIBDIRS) $(STD_C_LIBDIRS)
-
- ALLCPLUSDEFS = $(LOCAL_CPLUS_DEFS) $(LOCAL_CPLUS_INCS) $(PROJECT_CPLUS_DEFS) $(PROJECT_CPLUS_INCS) $(STD_CPLUS_DEFS) $(STD_CPLUS_INCS)
- ALLCPLUSLIBS = $(LOCAL_CPLUS_LIBS) $(PROJECT_CPLUS_LIBS) $(STD_CPLUS_LIBS)
- ALLCPLUSLIBDIRS = $(LOCAL_CPLUS_LIBDIRS) $(PROJECT_CPLUS_LIBDIRS) $(STD_CPLUS_LIBDIRS)
-
- CFLAGS = DefaultCFlags $(ALLCDEFS)
- CFLAGS_DEBUG = CFlagsDebug $(ALLCDEFS)
- C_OPTIMIZE = COptimizeFlag
- C_LDFLAGS = CLinkerOptions
- MISC_CFLAGS = MiscCFlags
-
- CPLUSFLAGS = DefaultCPlusFlags $(ALLCPLUSDEFS)
- CPLUSFLAGS_DEBUG = CPlusFlagsDebug $(ALLCPLUSDEFS)
- CPLUS_OPTIMIZE = CPlusOptimizeFlag
- CPLUS_LDFLAGS = CPlusLinkerOptions
-
-